package com.zhstudyjava.ai.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum TypeEnum {
    CHAT("chat","AI聊天" ),
    GAME("game", "游戏模拟器"),
    SERVICE("service", "智能客服"),
    PDF("pdf", "ChatPDF");
    @EnumValue
    private final String type;
    private final String desc;
    TypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
    public static TypeEnum getByChat(String type){
        for (TypeEnum resultCodeEnum : TypeEnum.values()){
            if (resultCodeEnum.getType().equals(type)){
                return resultCodeEnum;
            }
        }
        return null;
    }
}
